package com.example.weixin_01.test.design_model.responsibility;

/**
 * @author zhenghuisheng
 * @date : 2022/9/16
 */
public class CourseActualBuilder extends CourseBuilder {

    //创建一个视频资源类
    private Course course = new Course();

    @Override
    public void buildCourseName(String courseName) {
        this.course.setCourseName(courseName);
    }

    @Override
    public void buildCoursePPT(String coursePpt) {
        this.course.setCoursePPT(coursePpt);
    }

    @Override
    public void buildCourseVideo(String courseVideo) {
        this.course.setCourseVideo(courseVideo);
    }

    @Override
    public void buildCourseTitle(String courseTitle) {
        this.course.setCourseTitle(courseTitle);
    }

    @Override
    public void buildCourseQA(String courseQA) {
        this.course.setCourseQA(courseQA);
    }


    @Override
    public Course makeCourse() {
        return this.course;
    }
}
